package com.itheima;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringBoot03Application {

    public static void main(String[] args) {
        //在BeanFactory中可以获取到User bean 对象
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SpringBoot03Application.class, args);
        Object user = applicationContext.getBean("user");
        System.out.println(user);
    }



}
